package zuoye01;

public class Test {
    public static void main(String[] args) {
        Employee m=new Manager();
        Manager manager=(Manager)m;
        m.setWorkId("M001");
        m.setName("张小强");
        m.setDept("销售部");
        manager.setClerk("李小亮");
        m.showMsg();
        Employee c= new Clerk();
        Clerk clerk=(Clerk) c;
        clerk.setManager("张小强");
        c.setWorkId("C001");
        c.setName("李小亮");
        c.setDept("销售部");
        c.showMsg();
    }
}
